﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/scrapWip/scrapWip" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="scrapList" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>产品型号：</label>
            <input name='part_name' value="${part_name}" size="18"/>
            <label>扩散批号：</label>
            <input name="SUBSTRATE_ID1" value="${SUBSTRATE_ID1}" size="18"/>
            <label>组装批号：</label>
            <input name="LOT_ID" value="${LOT_ID}" size="18"/>
            <br/>
            <label>封装形式：</label>
            <input name="RESERVED1" value="${RESERVED1}" size="18"/>

            <label>客户订单：</label>
            <input name="CUSTOMER_ORDER" value="${CUSTOMER_ORDER}" size="18"/>
            <label>工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;步：</label>
            <input name="STEP_NAME" value="${STEP_NAME}" size="18"/>
            <br/>
            <label>报废开始时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <label>报废结束时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH:mm:ss')}" >&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/scrapWip/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>
<div class="bjui-pageContent">


    %{--<div style="margin:15px auto 0; width:96%;">--}%
        %{--<div class="row" style="padding: 0 8px;">--}%
            %{--<div class="col-md-12" id="glassOutReportTable">--}%

                    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                        <thead>
                        <tr>
                            <th width="40" align="center">No.</th>
                            <th width="140" align="">产品名称</th>
                            <th width="70">封装形式</th>
                            <th width="80">扩散批号</th>
                            <th width="135" align="">组装批号</th>
                            <th width="70" align="">报废代码</th>
                            <th width="146" align="">代码描述</th>
                            <th width="70" align="">报废工步</th>
                            <th width="185" align="">工步描述</th>
                            <th width="60" align="">报废数量</th>
                            <th width="60" align="">报废人员</th>
                            <th width="150" align="">报废时间</th>
                            <th width="130" align="">报废备注</th>
                            <th width="50" align="">周记</th>


                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${scrapList}" status="i" var="tableInstance">
                            <tr>
                                <td width="60">${i+1}</td>
                                <td width="80">${tableInstance.PART_NAME}</td>
                                <td width="80">${tableInstance.RESERVED1}</td>
                                <td width="100">${tableInstance.SUBSTRATE_ID1}</td>
                                <td width="80">${tableInstance.lot_id}</td>
                                <td width="80">${tableInstance.ACTION_CODE}</td>
                                <td width="80">${tableInstance.DESCRIPTION}</td>
                                <td width="80">${tableInstance.STEP_NAME}</td>
                                <td width="80">${tableInstance.STEP_DESC}</td>
                                <td width="80">${tableInstance.MAIN_QTY}</td>
                                <td width="110">${tableInstance.UPDATED_BY}</td>
                                <td width="130">${tableInstance.UPDATED}</td>
                                <td width="130">${tableInstance.ACTION_COMMENT}</td>
                                <td width="50">${tableInstance.Reserved4}</td>

                            </tr>
                        </g:each>

                        </tbody>
                    </table>

            %{--</div>--}%
        %{--</div>--}%
    %{--</div>--}%
</div>
<g:render template="../template/pagination"/>
